public class Solution674 {
    public int findLengthOfLCIS(int[] nums) {
        int max=0;
        int cur=0;
        for (int i=0;i<nums.length-1;i++){
            if (nums[i]<nums[i+1]){
                cur++;
            }else{
                max=Math.max(max,cur);
                cur=0;
            }
        }
        max=Math.max(max,cur);
        return max+1;
    }

    public static void main(String[] args) {
        System.out.println(new Solution674().findLengthOfLCIS(new int[]{1,3,5,4,7}));
    }
}
